import React from 'react';
import styled from 'styled-components';
// 封装一个页头标签
const Pageheader = (props) => {
	return (
		<Pagehead>
			<h2>{props.title}</h2>
			{/* 插槽 */}
			{props.children}
		</Pagehead>
	);
}

const Pagehead = styled.div`
	width: 100%;
	height: 74px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid rgb(235,237,240);
	padding: 0 20px;
`

export default Pageheader;
